<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->
<script type="text/javascript">
<!--
	function fnEdit(customer_id) {
		document.form1.action = '<!--{$smarty.const.URL_DIR}-->admin/customer/edit.php';
		document.form1.mode.value = "edit"
		document.form1['edit_customer_id'].value = customer_id;
		document.form1.submit();
		return false;
	}
//-->
</script>

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="order_id" value="<!--{$tpl_order_id}-->">
<input type="hidden" name="edit_customer_id" value="<!--{$tpl_order_id}-->">
<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>

	<!--{* ペイジェントモジュール連携用 *}-->
	<!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order.tpl}-->
	<!--{if file_exists($path)}-->
	<!--{include file=$path}-->
	<!--{/if}-->


<div class="menuclass">
<table summary="対応状況">
<tr>
	<th>対応状況</th>
	<td>
	<!--{assign var=key value="status"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
	<option value="">選択してください</option>
	<!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
	</select>
	</td>
	<th>発送日</th>
	<td><!--{$arrDisp.commit_date|sfDispDBDate|default:"未発送"}--></td>
</tr>
</table>
</div>
						

<div class="menuclass">
<h3>お客様情報</h3>
						<table summary="お客様情報">
							<!--{foreach key=key item=item from=$arrSearchHidden}-->
								<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
							<!--{/foreach}-->
							<tr>
								<th>受注番号</th>
								<td><!--{$arrDisp.order_id}--></td>
								<th>顧客ID</th>
								<td>
								<!--{if $arrDisp.customer_id > 0}-->
									<!--{$arrDisp.customer_id}-->
								<!--{else}-->
									（非会員）
								<!--{/if}-->
								</td>
							</tr>
							<tr>
								<th>受注日</th>
								<td colspan="3"><!--{$arrDisp.create_date|sfDispDBDate}--></td>
							</tr>
							<tr>
								<th>顧客名</th>
								<td><!--{$arrDisp.order_name01|escape}--> <!--{$arrDisp.order_name02|escape}--></td>
								<th>顧客名（カナ）</th>
								<td><!--{$arrDisp.order_kana01|escape}--> <!--{$arrDisp.order_kana02|escape}--></td>
							</tr>
							<tr>
								<th>メールアドレス</th>
								<td><a href="mailto:<!--{$arrDisp.order_email|escape}-->"><!--{$arrDisp.order_email|escape}--></a></td>
								<th>TEL</th>
								<td><!--{$arrDisp.order_tel01}-->-<!--{$arrDisp.order_tel02}-->-<!--{$arrDisp.order_tel03}--></td>
							</tr>
							<tr>
								<th>住所</td>
								<td colspan="3">〒<!--{$arrDisp.order_zip01}-->-<!--{$arrDisp.order_zip02}--><br>
								<!--{assign var=key value=$arrDisp.order_pref}-->
								<!--{$arrPref[$key]}--><!--{$arrDisp.order_addr01|escape}--><!--{$arrDisp.order_addr02|escape}--></td>
							</tr>
							<tr>
								<th>備考</td>
								<td colspan="3"><!--{$arrDisp.message|escape|nl2br}--></td>
							</tr>
						</table>
</div>
						<!--▲お客様情報ここまで-->



						<!--▼配送先情報ここから-->
<div class="menuclass">
<h3>配送先情報</h3>
						<table summary="配送先情報">
							<tr>
								<th>お名前</th>
								<td>
								<!--{assign var=key1 value="deliv_name01"}-->
								<!--{assign var=key2 value="deliv_name02"}-->
								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
								<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
								</td>
								<th>お名前（カナ）</th>
								<td>
								<!--{assign var=key1 value="deliv_kana01"}-->
								<!--{assign var=key2 value="deliv_kana02"}-->
								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
								<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
								</td>
							</tr>
							<tr>
								<th>郵便番号</th>
								<td>
								<!--{assign var=key1 value="deliv_zip01"}-->
								<!--{assign var=key2 value="deliv_zip02"}-->
								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
								〒
								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
								 - 
								<input type="text"  name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
								<input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'deliv_zip01', 'deliv_zip02', 'deliv_pref', 'deliv_addr01');" />
								</td>
								<th>TEL</th>
								<td>
								<!--{assign var=key1 value="deliv_tel01"}-->
								<!--{assign var=key2 value="deliv_tel02"}-->
								<!--{assign var=key3 value="deliv_tel03"}-->
								<span class="red12"><!--{$arrErr[$key1]}--></span>
								<span class="red12"><!--{$arrErr[$key2]}--></span>
								<span class="red12"><!--{$arrErr[$key3]}--></span>
								<input type="text" name="<!--{$arrForm[$key1].keyname}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" /> - 
								<input type="text" name="<!--{$arrForm[$key2].keyname}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" /> - 
								<input type="text" name="<!--{$arrForm[$key3].keyname}-->" value="<!--{$arrForm[$key3].value|escape}-->" maxlength="<!--{$arrForm[$key3].length}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->" size="6" class="box6" />
								</td>
							</tr>
							<tr>
								<th>住所</th>
								<td colspan="3">
										<!--{assign var=key value="deliv_pref"}-->
										<span class="red12"><!--{$arrErr[$key]}--></span>
										<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">							
										<option value="" selected="">都道府県を選択</option>
										<!--{html_options options=$arrPref selected=$arrForm[$key].value}-->
										</select>
										<br />
										<!--{assign var=key value="deliv_addr01"}-->
										<span class="red12"><!--{$arrErr[$key]}--></span>
										<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
										<br />
											<!--{assign var=key value="deliv_addr02"}-->
											<span class="red12"><!--{$arrErr[$key]}--></span>
											<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
								</td>
							</tr>
						</table>
						</div>
						<!--▲配送先情報ここまで-->



						<!--▼受注商品情報ここから-->
						<div class="menuclass">
						<h3>受注商品情報
<input type="button" name="cheek" value="計算結果の確認" onclick="fnModeSubmit('cheek','','');" />
								<span class="red12"><!--{$arrErr.quantity}--></span>
								<span class="red12"><!--{$arrErr.price}--></span>
						</h3>

						<table summary="受注商品情報">
							<tr align="center">
								<th>商品コード</th>
								<th>商品名/規格1/規格2</th>
								<th>単価</th>
								<th>数量</th>
								<th>税込み価格</th>
								<th>小計</th>
							</tr>
							<!--{section name=cnt loop=$arrForm.quantity.value}-->
							<!--{assign var=key value="`$smarty.section.cnt.index`"}-->
							<tr>
								<td><!--{$arrDisp.product_code[$key]|escape}--></td>
								<td><!--{$arrDisp.product_name[$key]|escape}-->/<!--{$arrDisp.classcategory_name1[$key]|escape|default:"(なし)"}-->/<!--{$arrDisp.classcategory_name2[$key]|escape|default:"(なし)"}--></td>
								<input type="hidden" name="product_id[]" value="<!--{$arrDisp.product_id[$key]}-->">
								<input type="hidden" name="product_code[]" value="<!--{$arrDisp.product_code[$key]}-->">
								<input type="hidden" name="product_name[]" value="<!--{$arrDisp.product_name[$key]}-->">
								<input type="hidden" name="point_rate[]" value="<!--{$arrDisp.point_rate[$key]}-->">	
								<input type="hidden" name="classcategory_id1[]" value="<!--{$arrDisp.classcategory_id1[$key]}-->">	
								<input type="hidden" name="classcategory_id2[]" value="<!--{$arrDisp.classcategory_id2[$key]}-->">
								<input type="hidden" name="classcategory_name1[]" value="<!--{$arrDisp.classcategory_name1[$key]}-->">	
								<input type="hidden" name="classcategory_name2[]" value="<!--{$arrDisp.classcategory_name2[$key]}-->">				
								<td align="center">
								<input type="text" name="price[]" value="<!--{$arrForm.price.value[$key]|escape}-->" size="6" class="box6" maxlength="<!--{$arrForm.price.length}-->"/> 円</td>
								<td align="center">
								<input type="text" name="quantity[]" value="<!--{$arrForm.quantity.value[$key]|escape}-->" size="3" class="box3" maxlength="<!--{$arrForm.quantity.length}-->"/></td>
								<!--{assign var=price value=`$arrForm.price.value[$key]`}-->
								<!--{assign var=quantity value=`$arrForm.quantity.value[$key]`}-->
								<td align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</td>
								<td align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|sfMultiply:$quantity|number_format}-->円</td>
							</tr>
							<!--{/section}-->
							<tr>
								<td colspan="5" align="right">小計</td>
								<td align="right"><!--{$arrForm.subtotal.value|number_format}-->円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">値引</td>
								<td align="right">
							<!--{assign var=key value="discount"}-->
							<span class="red12"><!--{$arrErr[$key]}--></span>
							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
							 円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">送料</td>
								<td align="right">
							<!--{assign var=key value="deliv_fee"}-->
							<span class="red12"><!--{$arrErr[$key]}--></span>
							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
							 円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">手数料</td>
								<td align="right">
							<!--{assign var=key value="charge"}-->
							<span class="red12"><!--{$arrErr[$key]}--></span>
							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
							 円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">合計</td>
								<td align="right">
								<span class="red12"><!--{$arrErr.total}--></span>
								<!--{$arrForm.total.value|number_format}--> 円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">お支払い合計</td>
								<td align="right">
								<span class="red12"><!--{$arrErr.payment_total}--></span>
								<!--{$arrForm.payment_total.value|number_format}-->
								 円</td>
							</tr>
							<tr>
								<td colspan="5" align="right">使用ポイント</td>
								<td align="right">
								<!--{assign var=key value="use_point"}-->
								<span class="red12"><!--{$arrErr[$key]}--></span>
								<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape|default:0}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
								 pt</td>
							</tr>
							<!--{if $arrForm.birth_point.value > 0}-->
							<tr>
								<td colspan="5" align="right">お誕生日ポイント</td>
								<td align="right">
								<!--{$arrForm.birth_point.value|number_format}-->
								 pt</td>
							</tr>
							<!--{/if}-->
							<tr>
								<td colspan="5" align="right">加算ポイント</td>
								<td align="right">
								<!--{$arrForm.add_point.value|number_format|default:0}-->
								 pt</td>
							</tr>
							<tr>
								<!--{if $arrDisp.customer_id > 0}-->
								<td colspan="5" align="right">現在ポイント（ポイントの修正は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrDisp.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
								<td align="right">
								<!--{$arrForm.point.value|number_format}-->
								 pt</td>
								<!--{else}-->
								<td colspan="5" align="right">現在ポイント</td><td align="center">（なし）</td>
								<!--{/if}-->
							</tr>
							<!--{*
							<tr bgcolor="#ffffff" class="fs12n">
								<td colspan="5" align="right">反映後ポイント（ポイントの変更は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrDisp.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
								<td align="right">
								<span class="red12"><!--{$arrErr.total_point}--></span>
								<!--{$arrForm.total_point.value}-->
								 pt</td>
							</tr>
							*}-->
						</table>
						</div>



<div class="menuclass">

<h3>お支払方法<span class="red">（お支払方法の変更に伴う手数料の変更は手動にてお願いします。)</span></h3>
<p>
<!--{assign var=key value="payment_id"}-->
<span class="red12"><!--{$arrErr[$key]}--></span>
<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
<option value="" selected="">選択してください</option>
<!--{html_options options=$arrPayment selected=$arrForm[$key].value}-->
</select>
</p>

							
	<!--{if $arrDisp.payment_info|@count > 0}-->
	<h3><!--{$arrDisp.payment_type}-->情報</h3>
	<p>
	<!--{foreach key=key item=item from=$arrDisp.payment_info}-->
	<!--{if $key != "title"}--><!--{if $item.name != ""}--><!--{$item.name}-->：<!--{/if}--><!--{$item.value}--><br/><!--{/if}-->
	<!--{/foreach}-->
	</p>
	<!--{/if}-->
							
		<h3>時間指定</h3>
		<p>
		<!--{assign var=key value="deliv_time_id"}-->
		<span class="red12"><!--{$arrErr[$key]}--></span>
		<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">	
		<option value="" selected="0">指定無し</option>
		<!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}-->
		</select>
		</p>

			<!--{assign var=key value="deliv_date"}-->
			<h3>配達日指定</h3>
			<p>
			<!--{assign var=key value="deliv_date"}-->
			<span class="red12"><!--{$arrErr[$key]}--></span>
			<!--{$arrForm[$key].value|default:"指定なし"}-->
			</p>

				<h3>メモ</h3>
				<p>
				<!--{assign var=key value="note"}-->
				<span class="red12"><!--{$arrErr[$key]}--></span>
				<textarea name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" cols="80" rows="6" class="area80" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrForm[$key].value|escape}--></textarea>
				</p>

</div>
<!--▲受注商品情報ここまで-->


				
<div class="btn_box">
<!--{if count($arrSearchHidden) > 0}-->		
<a href="#" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_ORDER}-->'); fnModeSubmit('search','',''); return false;">検索画面に戻る</a>
<!--{/if}-->
<input type="submit" value="この内容で登録する" name="subm" onclick="return fnConfirm();" />
</div>


</form>
</div>
</div>
